import { create } from 'zustand'

interface EngineState {
  engine: EngineType
  setEngine: (nv: EngineType) => void
}

const useEngineStore = create<EngineState>()((set) => ({
  engine: 'baidu',
  setEngine: (nv: EngineType) => set(() => ({ engine: nv }))
}))

export default useEngineStore
